import { BasicColumn } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '结算单位',
    align: 'center',
    dataIndex: 'company',
  },
  {
    title: '保险公司',
    align: 'center',
    dataIndex: 'insurance_dictText',
  },

  {
    title: '结算区域',
    align: 'center',
    dataIndex: 'areas',
    customRender: ({ value }) => {
      // js数组转字符串
      if (!value) {
        return '';
      }
      const areas = value.join(',');
      return areas;
    },
  },

  {
    title: '结算规则',
    align: 'center',
    dataIndex: 'rule_dictText',
  },
];
